package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.ProblemView
import hlhj.fhp.checkpoint.javaBean.ProblemBean
import hlhj.fhp.checkpoint.module.ProblemModule

/**
 * Created by Never Fear   on 2018\11\22 0022.
Never More....
 */
class ProblemPresenter :BasePresenter<ProblemModule,ProblemView>(), ProblemModule.ProblemListener {
    override fun problemResp(problemBean: ProblemBean) {
        view?.setProblem(problemBean)
    }

    fun getProblem(c:Context,page:Int){
        module?.getProblem(c, page)
    }
    override fun createModule() {
        module= ProblemModule()
        module.listener=this
    }
}